package com.nbsaas.boot.controller;

import com.nbsaas.boot.Controller;
import com.nbsaas.boot.domian.User;
import com.nbsaas.boot.domian.UserResponse;

public class UserController extends Controller<User, UserResponse> {

    // 处理请求，返回响应
    @Override
    protected UserResponse handleRequest(User requestObject) {
        // 假设请求对象的 name 字段需要处理并返回消息
        return new UserResponse("Hello, " + requestObject.getName() + "!", "success");
    }

    // 获取请求的类
    @Override
    protected Class<User> getRequestClass() {
        return User.class;
    }
}
